import { IconMenuTable } from '@/components/app-icons/index.js'
import Layout from '@/layout/index.vue'
import { markRaw } from 'vue'

export default [
  {
    name: 'Example',
    path: '/example',
    component: Layout,
    redirect: '/example/button',
    meta: {
      title: '组件示例',
      role: ['admin'],
    },
    children: [
      {
        name: 'Echarts',
        path: 'echarts',
        component: () => import('@/views/examples/echarts/index.vue'),
        meta: {
          title: '图表',
          role: ['admin'],
          icon: markRaw(IconMenuTable),
        },
      },
      {
        name: 'Steps',
        path: 'setps',
        component: () => import('@/views/examples/steps/index.vue'),
        meta: {
          title: '步骤表单',
          role: ['admin'],
          icon: markRaw(IconMenuTable),
        },
      },
      {
        name: 'Button',
        path: 'button',
        component: () => import('@/views/examples/button/index.vue'),
        meta: {
          title: '按钮',
          role: ['admin'],
          icon: markRaw(IconMenuTable),
        },
      },
      {
        name: 'Table',
        path: 'table',
        component: () => import('@/views/examples/table/index.vue'),
        meta: {
          title: '基础表格',
          role: ['admin'],
          icon: markRaw(IconMenuTable),
        },
      },
      {
        name: 'Modal',
        path: 'modal',
        component: () => import('@/views/examples/modal/index.vue'),
        meta: {
          title: '基础弹框',
          role: ['admin'],
          icon: markRaw(IconMenuTable),
        },
      },

      //   children: [
      //     {
      //       name: 'PostList',
      //       path: 'post',
      //       component: () => import('@/views/examples/table/post/index.vue'),
      //       meta: {
      //         title: '文章列表',
      //         role: ['admin'],
      //       },
      //     },
      //     {
      //       name: 'PostCreate',
      //       path: 'post-create',
      //       component: () => import('@/views/examples/table/post/PostCreate.vue'),
      //       meta: {
      //         title: '创建文章',
      //         role: ['admin'],
      //       },
      //     },
      //   ],
      // },
    ],
  },
]
